package com.itheima.d4_scanner;

import java.util.Scanner;

/*
    键盘录入三个数据, 求最大值
 */
public class Test2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个数据");
//        String a = sc.next();
        int b = sc.nextInt();
        System.out.println("请输入第二个数据");
        int c = sc.nextInt();
        System.out.println("请输入第三个数据");
        double d = sc.nextDouble();
        double max = b > c ? b : c;
        max = max > d ? max : d;

        System.out.println(max);
    }
}
